package cn.aaalei.service;

import cn.aaalei.pojo.*;

import java.util.List;

public interface DataSaveService {

    int addBindInfo(BindDeviceInfo bindDeviceInfo);

    int updateBindInfo(BindDeviceInfo bindDeviceInfo);

    BindDeviceInfo findBindInfoByStudentNo(String studentNo);

    BindDeviceInfo findBindInfoByUserId(String userId);

    int addProfileInfo(LoginProfileInfo loginProfileInfo);

    int updateProfileInfo(LoginProfileInfo loginProfileInfo);

    LoginProfileInfo findProfileInfoByStudentNo(String studentNo);

    LoginProfileInfo findProfileInfoByUserId(String userId);

    int addModifySignInfo(SignLogInfo signLogInfo);

    int addUnbindSignInfo(SignLogInfo signLogInfo);

    int addEvaluateSignInfo(SignLogInfo signLogInfo);

    int addAutoSignInfo(SignLogInfo signLogInfo);

    List<SignLogInfo> findSignLogInfoByStudentNo(String studentNo);

    List<AdminInfo> findList(String username);

    Integer findUserExist(String username);

    Integer findWisdomExist(String username);

    int addUser(AdminInfo adminInfo);

    Integer findUserScore(String username);

    int updateUserScore(String username,int score);

    String findUsernameByStudentNo(String studentNo);

    KeyInfo findKey(String key);

    Integer updateKey(KeyInfo keyInfo);

    AutoSignAccount findAccount(String studentNo);

    int insertAccount(AutoSignAccount account);

    int updateAccount(AutoSignAccount account);

    Integer addDailySignLog(DailySignLogInfo dailySignLogInfo);

    Integer updateDailySign(UserInfo userInfo);

    UserInfo checkDailySignExistByUsername(String username);

    Integer addRecommendLog(RecommendLog recommendLog);
}
